home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / island_fishing.swf / scripts / frame_223 / PlaceObject2_161_16 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2011-01-13  |  4KB  |  113 lines

  1. onClipEvent(enterFrame){
  2.    if(this.canmove <= 0)
  3.    {
  4.       this._x = _root.hook._x;
  5.       this._y = _root.hook._y;
  6.    }
  7.    if(_root.turtleesc >= 1)
  8.    {
  9.       this.play();
  10.       this.hooked = 0;
  11.       _root.guy.gotoAndStop(1);
  12.    }
  13.    if(this.hitTest(_root.rodend))
  14.    {
  15.       unloadMovie(this);
  16.       _root.guy.head.gotoAndPlay("yar");
  17.       _root.fish = _root.fish + 1;
  18.       _root.scorepopup.score.text = "15";
  19.       _root.scorepopup.play();
  20.       _root.score = _root.score + 1;
  21.       _root.score = _root.score + 1;
  22.       _root.score = _root.score + 1;
  23.       _root.score = _root.score + 1;
  24.       _root.score = _root.score + 1;
  25.       _root.score = _root.score + 1;
  26.       _root.score = _root.score + 1;
  27.       _root.score = _root.score + 1;
  28.       _root.score = _root.score + 1;
  29.       _root.score = _root.score + 1;
  30.       _root.score = _root.score + 1;
  31.       _root.score = _root.score + 1;
  32.       _root.score = _root.score + 1;
  33.       _root.score = _root.score + 1;
  34.       _root.score = _root.score + 1;
  35.       _root.hunger = _root.hunger + 1;
  36.       _root.hunger = _root.hunger + 1;
  37.       _root.hunger = _root.hunger + 1;
  38.       _root.hunger = _root.hunger + 1;
  39.       _root.hunger = _root.hunger + 1;
  40.       _root.hunger = _root.hunger + 1;
  41.       _root.hunger = _root.hunger + 1;
  42.       _root.hunger = _root.hunger + 1;
  43.       _root.hunger = _root.hunger + 1;
  44.       _root.hunger = _root.hunger + 1;
  45.       _root.hunger = _root.hunger + 1;
  46.       _root.hunger = _root.hunger + 1;
  47.       _root.hunger = _root.hunger + 1;
  48.       _root.hunger = _root.hunger + 1;
  49.       _root.hunger = _root.hunger + 1;
  50.       _root.hunger = _root.hunger + 1;
  51.       _root.hunger = _root.hunger + 1;
  52.       _root.hunger = _root.hunger + 1;
  53.       _root.hunger = _root.hunger + 1;
  54.       _root.hunger = _root.hunger + 1;
  55.    }
  56.    if(this.hitTest(_root.hook))
  57.    {
  58.       if(_root.f2.hooked <= 0)
  59.       {
  60.          if(_root.f3.hooked <= 0)
  61.          {
  62.             if(_root.f4.hooked <= 0)
  63.             {
  64.                if(_root.f5.hooked <= 0)
  65.                {
  66.                   if(_root.f6.hooked <= 0)
  67.                   {
  68.                      if(_root.f7.hooked <= 0)
  69.                      {
  70.                         if(_root.f8.hooked <= 0)
  71.                         {
  72.                            if(_root.f9.hooked <= 0)
  73.                            {
  74.                               if(_root.f10.hooked <= 0)
  75.                               {
  76.                                  if(this.flashing <= 0)
  77.                                  {
  78.                                     _root.guy.gotoAndStop(2);
  79.                                     if(_root.hook._x < 520)
  80.                                     {
  81.                                        _root.hook._x += 0.5;
  82.                                     }
  83.                                     if(_root.hook._y < 380)
  84.                                     {
  85.                                        _root.hook._y += 0.5;
  86.                                     }
  87.                                     _root.turtletimer.play();
  88.                                     this.canmove = 0;
  89.                                     this.hooked = 1;
  90.                                     this._x = _root.hook._x;
  91.                                     this._y = _root.hook._y;
  92.                                  }
  93.                                  else
  94.                                  {
  95.                                     this.canmove = 1;
  96.                                     this.hooked = 0;
  97.                                     if(this._y < 160)
  98.                                     {
  99.                                        this._y = 180;
  100.                                     }
  101.                                  }
  102.                               }
  103.                            }
  104.                         }
  105.                      }
  106.                   }
  107.                }
  108.             }
  109.          }
  110.       }
  111.    }
  112. }
  113.